package com.lyrcsoft.factorybeans;

import com.lyrcsoft.model.My;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * @author fujc-dev@qq.com
 * @version 1.0
 */
@Component
public class MyFactoryBean implements FactoryBean<My> {
    @Override
    public My getObject() throws Exception {
        return new My();
    }

    @Override
    public Class<?> getObjectType() {
        return My.class;
    }
}
